<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>{{content.title}} - {{SITE_DOCMENT_TITLE}}</title>
    <meta name="keywords" content="{{content.keywords}}" />
    <meta name="description" content="{{content.description}}" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/public/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="/public/main.css">
    <script src="/public/js/jquery.min.js"></script>
</head>

<body>
    {{ include "./header.html" }}
    <section class="container mt-20">
        <ol class="breadcrumb">
            当前位置：
            <li>
                <a href="/">{{SITE_DOCMENT_TITLE}}首页</a>
            </li>
            <li>
                <a href="/category-{{content.category.cid}}-page-0"> {{content.category.name}} </a>
            </li>
            <li>{{content.title}}</li>
        </ol>
        <div class="row">
            <div class="col-lg-8">
                <div class="content">
                    <article class="article-content panel">
                        <header class="article-header">
                            <h1 class="article-title">{{content.title}}</h1>
                            <div class="article-meta">{{content.createAt|dateFormat }} |
                                <a href="/category-{{content.category.cid}}-page-0">
                                    {{content.category.name}} </a> | 已围
                                <span id="count">
                                    {{content.views}}</span>次
                            </div>
                        </header>
                        <div>
                            {{@ content.content }}
                        </div>
                        {{if content.tags}}
                        <div>
                            {{each content.tags tag}}
                            <a class="label label-primary" href="/tag-{{ tag.cid }}-page-0">{{tag.name}}</a>
                            {{/each}}
                        </div>
                        {{/if}}
                        {{if content.originalLink}}
                        <div> <a class="text-muted h6" rel="nofollow" href="{{ content.originalLink }} ">原文链接</a></div>
                        {{/if}}
                        <div>
                            <nav>
                                <ul class="pager article-pager">
                                    {{if prev}}
                                    <li class="text-left">上一篇：<a href="/content/{{prev.cid}}">{{prev.title}}</a></li>
                                    {{/if}}
                                    {{ if next }}
                                    <li class="text-right">下一篇：<a href="/content/{{next.cid}}">{{next.title}}</a></li>
                                    {{ /if }}
                                </ul>
                            </nav>
                        </div>
                    </article>
                </div>
            </div>
            <aside class="col-lg-4 ">
                {{ include "./aside.html" }}
            </aside>
        </div>
    </section>
    <footer>
        {{ include "./footer.html" }}
    </footer>
</body>


</html>